home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / utils / identify / install-d < prev    next >
Text File  |  1999-01-01  |  7KB  |  270 lines

  1. ;**********************************************************
  2. ;*                                                        *
  3. ;*           Identify Installer Script                    *
  4. ;*                                                        *
  5. ;**********************************************************
  6. ;*
  7. ;*      $VER: Install-Identify 2.0 (27.12.97)
  8. ;*      (C) 1997 Richard Körber -- All Rights Reserved
  9. ;*
  10. ;**********************************************************
  11.  
  12.  
  13. ;********* MESSAGES ***************************************
  14.  
  15. (set MStartup
  16.   (cat  "\nWillkommen zur\n\n"
  17.         "Identify Installation\n\n\n"
  18.         "Lesen Sie bitte unbedingt VOR dem ersten Start die Anleitung!"
  19.   )
  20. )
  21.  
  22. (set POptions "Was soll installiert werden?")
  23. (set HOptions
  24.   (cat  "Wählen Sie aus, welche Teile des Pakets installiert werden sollen.\n\n"
  25.         "Libraries: Die eigentlichen Identify-Bibliotheken.\n\n"
  26.         "Tools: Kleine Programme zum Betrieb.\n\n"
  27.         "Dokumentation: Normale Benutzerdokumentation.\n\n"
  28.         "Kataloge: Die Sprachkataloge.\n\n"
  29.         "Sollten Sie sich nicht sicher sein, wählen Sie einfach die Voreinstellung. "
  30.         "Später können weitere Teile problemlos hinzugefügt werden."
  31.   )
  32. )
  33. (set SLibs    "Libraries")
  34. (set STools   "Tools")
  35. (set SDoc     "Dokumentation")
  36. (set SCatalog "Kataloge")
  37.  
  38. (set PLibDestDir "Wohin sollen die Libraries installiert werden?")
  39. (set HLibDestDir
  40.   (cat  "Wählen Sie das Verzeichnis, in das Sie System-Libraries ablegen. "
  41.         "Üblicherweise ist es \"LIBS:\"."
  42.   )
  43. )
  44.  
  45. (set P68k   "Welche Version soll installiert werden?")
  46. (set H68k
  47.   (cat  "Wählen Sie, welche Prozessorversion installiert werden soll. "
  48.         "Die 68020-Version läuft nicht auf 68000 und 68010. Die 68000 "
  49.         "läuft auf allen Versionen, aber benötigt mehr Speicher. "
  50.         "Im Zweifelsfall wählen Sie die Voreinstellung."
  51.   )
  52. )
  53.  
  54. (set C68000 "68000, 68010")
  55. (set C68020 "ab 68020")
  56.  
  57. (set PToolDestDir "Wohin sollen die Tools installiert werden?")
  58. (set HToolDestDir
  59.   (cat  "Wählen Sie hier ein Verzeichnis, das im Suchpfad der Shell liegt. "
  60.         "Üblicherweise ist es \"C:\"."
  61.   )
  62. )
  63.  
  64. (set PDocDestDir "Wohin soll die Anleitung installiert werden?\nEine Schublade wird nicht angelegt.")
  65. (set HDocDestDir
  66.   (cat  "Wählen Sie hier ein Verzeichnis, in das die Anleitung abgelegt werden soll. "
  67.         "Dies kann ein Verzeichnis sein, wo sie alle Dokumentationen sammeln, oder "
  68.         "auch HELP:, wenn vorhanden."
  69.   )
  70. )
  71.  
  72. (set PCatDestDir "Wohin sollen die Sprachkataloge installiert werden?")
  73. (set HCatDestDir
  74.   (cat  "Wählen Sie das Verzeichnis, in das Sie Sprachkataloge ablegen. "
  75.         "Üblicherweise ist es \"LOCALE:Catalogs/\"."
  76.   )
  77. )
  78.  
  79. (set PCopyLib     "Kopiere die identify.library")
  80. (set PCopyRexxLib "Kopiere die rexxidentify.library")
  81. (set PCopyTool    "Kopiere die Tools")
  82. (set PCopyDoc     "Kopiere die Anleitung")
  83. (set PCopyCat     "Kopiere die Kataloge")
  84.  
  85. (set HCopyTool
  86.   (cat  "Welche Tools sollen kopiert werden?\n\n"
  87.         "ListExp: Beschreibt das System, die Erweiterungskarten und Commodities. "
  88.         "Sehr praktisch für Bugreports oder als ShowConfig-Ersatz.\n\n"
  89.         "Guru: Übersetzt einen Guru-Code in menschenverständliche Form.\n\n"
  90.         "Function: Gibt den Funktionsnamen einer Library an einem bestimmten Offset an.\n\n"
  91.         "InstallIfy: Ist ein Hilfsprogramm für Installer-Scripts."
  92.   )
  93. )
  94.  
  95. ;********* FILES ******************************************
  96.  
  97. (set FIfyLibName "identify.library")
  98. (set FIfyLib     "libs/identify.library")
  99. (set FIfy000Lib  "libs/identify.library_000")
  100. (set FRexxLib    "libs/rexxidentify.library")
  101. (set FListExp    "ListExp")
  102. (set FGuru       "Guru")
  103. (set FFunction   "Function")
  104. (set FInstallIfy "InstallIfy")
  105. (set FTool       "c/")
  106. (set FDocs       "docs/")
  107. (set FCat        "catalogs/")
  108.  
  109.  
  110. ;********* INSTALLER SCRIPT *******************************
  111.  
  112. (set @default-dest "")          ; currently no specific dir
  113.  
  114. ;------ Greetings to the user -----------------------------
  115. (message MStartup)
  116.  
  117. ;------ What should be installed --------------------------
  118. (set InstOpts                   ; ask what to install
  119.   (askoptions
  120.     (prompt  POptions)
  121.     (help    HOptions)
  122.     (choices SLibs STools SDoc SCatalog)
  123.     (default -1)
  124.   )
  125. )
  126.  
  127. (if (< (database "cpu") 68020)
  128.   (set FCopyIfyLib FIfy000Lib)
  129.   (set FCopyIfyLib FIfyLib)
  130. )
  131.  
  132. ;------ Ask for destinations ------------------------------
  133. (if (IN InstOpts 0)             ; Libs
  134.   (
  135.     (set LibDestDir "LIBS:")    ; Destination for the library
  136.     (if (= @user-level 2)
  137.       (
  138.         (set LibDestDir
  139.           (askdir
  140.             (prompt PLibDestDir)
  141.             (help   HLibDestDir)
  142.             (default LibDestDir)
  143.           )
  144.         )
  145.         (if (< (database "cpu") 68020)
  146.           (set cpuchoice 0)
  147.           (set cpuchoice 1)
  148.         )
  149.         (if (= 0 (askchoice (prompt P68k) (help H68k) (choices C68000 C68020) (default cpuchoice)))
  150.           (set FCopyIfyLib FIfy000Lib)
  151.           (set FCopyIfyLib FIfyLib)
  152.         )
  153.       )
  154.     )
  155.   )
  156. )
  157.  
  158. (if (IN InstOpts 1)             ; Tools
  159.   (
  160.     (set ToolDestDir "C:")
  161.     (if (= @user-level 2)
  162.       (set ToolDestDir
  163.         (askdir
  164.           (prompt PToolDestDir)
  165.           (help   HToolDestDir)
  166.           (default ToolDestDir)
  167.         )
  168.       )
  169.     )
  170.   )
  171. )
  172.  
  173. (if (IN InstOpts 2)             ; Docs
  174.   (
  175.     (set DocDestDir
  176.       (askdir
  177.         (prompt  PDocDestDir)
  178.         (help    HDocDestDir)
  179.         (default "Work:")
  180.       )
  181.     )
  182.   )
  183. )
  184.  
  185. (if (IN InstOpts 3)             ; Catalogs
  186.   (
  187.     (set CatDestDir "Locale:Catalogs/")
  188.     (if (= @user-level 2)
  189.       (set CatDestDir
  190.         (askdir
  191.           (prompt PCatDestDir)
  192.           (help   HCatDestDir)
  193.           (default CatDestDir)
  194.         )
  195.       )
  196.     )
  197.   )
  198. )
  199.  
  200.  
  201. ;------ Copy all files ------------------------------------
  202. (if (IN InstOpts 0)             ; Libraries
  203.   (
  204.     (copylib
  205.       (prompt  PCopyLib)
  206.       (help    @copylib-help)
  207.       (confirm)
  208.       (source  FCopyIfyLib)
  209.       (dest    LibDestDir)
  210.       (newname FIfyLibName)
  211.     )
  212.     (copylib
  213.       (prompt PCopyRexxLib)
  214.       (help   @copylib-help)
  215.       (confirm)
  216.       (source FRexxLib)
  217.       (dest   LibDestDir)
  218.     )
  219.   )
  220. )
  221.  
  222. (if (IN InstOpts 1)             ; Tools
  223.   (
  224.     (copyfiles
  225.       (prompt PCopyTool)
  226.       (help   HCopyTool)
  227.       (confirm)
  228.       (choices FListExp FGuru FFunction FInstallIfy)
  229.       (source FTool)
  230.       (dest   ToolDestDir)
  231.     )
  232.   )
  233. )
  234.  
  235. (if (IN InstOpts 2)             ; Docs
  236.   (
  237.     (copyfiles
  238.       (prompt PCopyDocs)
  239.       (help   @copyfiles-help)
  240.       (confirm)
  241.       (source FDocs)
  242.       (dest   DocDestDir)
  243.       (all)
  244.       (infos)
  245.       (noposition)
  246.     )
  247.   )
  248. )
  249.  
  250. (if (IN InstOpts 3)             ; Catalogs
  251.   (
  252.     (copyfiles
  253.       (prompt PCopyCat)
  254.       (help   @copyfiles-help)
  255.       (confirm)
  256.       (source FCat)
  257.       (dest   CatDestDir)
  258.       (all)
  259.       (infos)
  260.       (noposition)
  261.     )
  262.   )
  263. )
  264.  
  265.  
  266. (exit)
  267.  
  268. ;********* DONE *******************************************
  269.  
  270.